package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class Feeback implements Serializable {

	private static final long serialVersionUID = -1054295569112769324L;

	//fields
	private java.lang.Integer id;
	private java.lang.String name;
	private java.lang.String type;
	private java.lang.String email;
	private java.lang.String content;
	private java.lang.String reply;
	private java.sql.Timestamp createTime;
	private java.sql.Timestamp lastupdate;
	private java.lang.String status;

	//default constructor
	public Feeback() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.String getName() {
		return name;
	}
	public java.lang.String getType() {
		return type;
	}
	public java.lang.String getEmail() {
		return email;
	}
	public java.lang.String getContent() {
		return content;
	}
	public java.lang.String getReply() {
		return reply;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}
	public java.sql.Timestamp getLastupdate() {
		return lastupdate;
	}
	public java.lang.String getStatus() {
		return status;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setName(java.lang.String name) {
		this.name = name;
	}
	public void setType(java.lang.String type) {
		this.type = type;
	}
	public void setEmail(java.lang.String email) {
		this.email = email;
	}
	public void setContent(java.lang.String content) {
		this.content = content;
	}
	public void setReply(java.lang.String reply) {
		this.reply = reply;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}
	public void setLastupdate(java.sql.Timestamp lastupdate) {
		this.lastupdate = lastupdate;
	}
	public void setStatus(java.lang.String status) {
		this.status = status;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof Feeback))
			return false;

		final Feeback feeback = (Feeback)other;
		if (!this.id.equals(feeback.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("Feeback[")
			.append("id=").append(id).append(", ")
			.append("name=").append(name).append(", ")
			.append("type=").append(type).append(", ")
			.append("email=").append(email).append(", ")
			.append("content=").append(content).append(", ")
			.append("reply=").append(reply).append(", ")
			.append("createTime=").append(createTime).append(", ")
			.append("lastupdate=").append(lastupdate).append(", ")
			.append("status=").append(status).append("]").toString();
	}
}